using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinformDevelopFrame.IServices;
using WinformDevelopFrame.IRepository;
using WinformDevelopFrame.Entity;
namespace WinformDevelopFrame.Services
{
    public class sysdicdataService : BaseServices<sysdicdata>, IsysdicdataService
    {
        private readonly IsysdicdataRepository _dal;
        public sysdicdataService(IsysdicdataRepository dal)
        {
            this._dal = dal;
            this.BaseDal = dal;
        }
        public int Add(sysdicdata m)
        {
            return _dal.Add(m);
        }

        public int AddList(List<sysdicdata> list)
        {
            return _dal.AddList(list);
        }

        public bool UpdateN(sysdicdata m)
        {
            return (_dal.UpdateN(m));
        }

        public bool UpdateList(List<sysdicdata> list)
        {
            return _dal.UpdateList(list);
        }

        public bool DeleteN(sysdicdata m)
        {
            return _dal.DeleteN(m);
        }

        public bool DeleteList(List<sysdicdata> list)
        {
            return _dal.DeleteList(list);
        }

        public sysdicdata QueryById(int id)
        {
            return _dal.QueryById(id);
        }

        public List<sysdicdata> QueryList(List<int> ids)
        {
            return _dal.QueryList(ids);
        }
    }
}